<?php
$form = $this->beginWidget('CActiveForm', array(
	'id' => 'login-form',
	'enableAjaxValidation' => true,
	'clientOptions' => array(
		'validateOnSubmit' => true,
	),
	'htmlOptions' => array(
		'class' => 'row-fluid'
	)
		));
?>
<div class="row-fluid">
<div class="span4">
	<br />
</div>
<div class="span4">
	<br />
	<br />
	<br />
	<br />
	<br />
	<div class="grid simple">
		<div class="grid-title no-border">
			<h4>Авторизация к Администраторской части сайта</h4>
		</div>
		<div class="grid-body no-border">
			<div class="row-fluid">
				<div class="input-prepend inside span12"> <span class="add-on"><i class="icon-instagram"></i> </span>
					<?php echo $form->textField($model, 'username', array('class' => 'span10', 'id' => 'prependedInput', 'placeholder' => 'Username')); ?>
					<?php echo $form->error($model, 'username'); ?>
				</div>
			</div>

			<div class="row-fluid">
				<div class="input-prepend inside span12"> <span class="add-on"><i class="icon-lock"></i> </span>
					<?php echo $form->passwordField($model, 'password', array('class' => 'span10', 'id' => 'prependedInput', 'placeholder' => 'Password')); ?>
					<?php echo $form->error($model, 'password'); ?>
				</div>
			</div>

			<div class="control-group">
				<?php echo $form->checkBox($model, 'rememberMe'); ?>
				<?php echo $form->label($model, 'rememberMe'); ?>
				<?php echo $form->error($model, 'rememberMe'); ?>
			</div>

			<div class="login-btn">
				<?php echo CHtml::submitButton('Login', array('class' => 'btn btn-primary btn-large active')); ?>
			</div>

			<?php $this->endWidget(); ?>
		</div>
	</div>
</div>
</div>
